package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.BeamRealtimeMapper;
import com.ruoyi.project.domain.BeamRealtime;
import com.ruoyi.project.service.IBeamRealtimeService;

/**
 * 实时数据Service业务层处理
 * 
 * @author 向军
 * @date 2021-11-28
 */
@Service
public class BeamRealtimeServiceImpl implements IBeamRealtimeService 
{
    @Autowired
    private BeamRealtimeMapper beamRealtimeMapper;

    /**
     * 查询实时数据
     * 
     * @param mid 实时数据主键
     * @return 实时数据
     */
    @Override
    public BeamRealtime selectBeamRealtimeByMid(String mid)
    {
        return beamRealtimeMapper.selectBeamRealtimeByMid(mid);
    }

    /**
     * 查询实时数据列表
     * 
     * @param beamRealtime 实时数据
     * @return 实时数据
     */
    @Override
    public List<BeamRealtime> selectBeamRealtimeList(BeamRealtime beamRealtime)
    {
        return beamRealtimeMapper.selectBeamRealtimeList(beamRealtime);
    }

    /**
     * 新增实时数据
     * 
     * @param beamRealtime 实时数据
     * @return 结果
     */
    @Override
    public int insertBeamRealtime(BeamRealtime beamRealtime)
    {
        return beamRealtimeMapper.insertBeamRealtime(beamRealtime);
    }

    /**
     * 修改实时数据
     * 
     * @param beamRealtime 实时数据
     * @return 结果
     */
    @Override
    public int updateBeamRealtime(BeamRealtime beamRealtime)
    {
        return beamRealtimeMapper.updateBeamRealtime(beamRealtime);
    }

    /**
     * 批量删除实时数据
     * 
     * @param mids 需要删除的实时数据主键
     * @return 结果
     */
    @Override
    public int deleteBeamRealtimeByMids(String[] mids)
    {
        return beamRealtimeMapper.deleteBeamRealtimeByMids(mids);
    }

    /**
     * 删除实时数据信息
     * 
     * @param mid 实时数据主键
     * @return 结果
     */
    @Override
    public int deleteBeamRealtimeByMid(String mid)
    {
        return beamRealtimeMapper.deleteBeamRealtimeByMid(mid);
    }

    @Override
    public BeamRealtime selectBeamRealtimeById(Long id) {
        return beamRealtimeMapper.selectBeamRealtimeById(id);
    }
}
